﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace SISREBBVA.DA
{
    public class ConexionDA
    {
        private static DatabaseHelper con;

        public static DatabaseHelper obtenerConexion()
        {
            if (con == null)
            {
                string strConn = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
                con = new DatabaseHelper(strConn);
            }
            return con;
        }
    }
}
